package cn.zhukelili.dynamincproxymodel;

/**
 * @Description: 场景类
 * @Auther: hongheshou
 * @Date: 2018/7/16 09:28
 */
public class Client2 {
    public static void main(String[] args) {
        //定义一个主题
        Subject subject = new RealSubject();
        //定义主题的代理
        Subject proxy = SubjectDynamicProxy.newProxyInstance(subject);
        //代理的行为
        proxy.doSomething("Finish");
    }
}
